  /**
   * Generate time : 2017-03-21 15:18:38
   * Version : 1.0.1.V20070717
   */
package com.baosight.scaq.aq.ci.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * AQCIRealtimePersonInfo 
 *  
 */
public class AQCIRealtimePersonInfo extends DaoEPBase {

	private String fdKeyId = " ";		
	private String fdMiningId = " ";		
	private String fdMiningCode = " ";		
	private String fdDepartment = " ";		
	private String fdPersonName = " ";		
	private String fdPersonNo = " ";		
	private String fdRegionname = " ";		
	private String fdIntotime = " ";		
	private String fdCreatedoctime = " ";		
	private String fdWorktype = " ";		
	private String fdStationname = " ";		
	private Long fdNowinminetotal = new Long(0);	
	private Long fdRegiontotal = new Long(0);	
	private Long fdStationtotal = new Long(0);	
	private String fdTracktimemuster = " ";		
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningId");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMiningCode");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(300);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPersonName");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPersonNo");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRegionname");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIntotime");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreatedoctime");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorktype");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStationname");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNowinminetotal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRegiontotal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStationtotal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTracktimemuster");
	eiColumn.setFieldLength(2000);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public AQCIRealtimePersonInfo() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId 
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdMiningId 
	 * @return the fdMiningId
	 */
	public String getFdMiningId() {
		return this.fdMiningId;
	}
	
	/**
	 * set the fdMiningId 
	 */
	public void setFdMiningId(String fdMiningId) {
		this.fdMiningId = fdMiningId;
	}
	/**
	 * get the fdMiningCode 
	 * @return the fdMiningCode
	 */
	public String getFdMiningCode() {
		return this.fdMiningCode;
	}
	
	/**
	 * set the fdMiningCode 
	 */
	public void setFdMiningCode(String fdMiningCode) {
		this.fdMiningCode = fdMiningCode;
	}
	/**
	 * get the fdDepartment 
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment 
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the fdPersonName 
	 * @return the fdPersonName
	 */
	public String getFdPersonName() {
		return this.fdPersonName;
	}
	
	/**
	 * set the fdPersonName 
	 */
	public void setFdPersonName(String fdPersonName) {
		this.fdPersonName = fdPersonName;
	}
	/**
	 * get the fdPersonNo 
	 * @return the fdPersonNo
	 */
	public String getFdPersonNo() {
		return this.fdPersonNo;
	}
	
	/**
	 * set the fdPersonNo 
	 */
	public void setFdPersonNo(String fdPersonNo) {
		this.fdPersonNo = fdPersonNo;
	}
	/**
	 * get the fdRegionname 
	 * @return the fdRegionname
	 */
	public String getFdRegionname() {
		return this.fdRegionname;
	}
	
	/**
	 * set the fdRegionname 
	 */
	public void setFdRegionname(String fdRegionname) {
		this.fdRegionname = fdRegionname;
	}
	/**
	 * get the fdIntotime 
	 * @return the fdIntotime
	 */
	public String getFdIntotime() {
		return this.fdIntotime;
	}
	
	/**
	 * set the fdIntotime 
	 */
	public void setFdIntotime(String fdIntotime) {
		this.fdIntotime = fdIntotime;
	}
	/**
	 * get the fdCreatedoctime 
	 * @return the fdCreatedoctime
	 */
	public String getFdCreatedoctime() {
		return this.fdCreatedoctime;
	}
	
	/**
	 * set the fdCreatedoctime 
	 */
	public void setFdCreatedoctime(String fdCreatedoctime) {
		this.fdCreatedoctime = fdCreatedoctime;
	}
	/**
	 * get the fdWorktype 
	 * @return the fdWorktype
	 */
	public String getFdWorktype() {
		return this.fdWorktype;
	}
	
	/**
	 * set the fdWorktype 
	 */
	public void setFdWorktype(String fdWorktype) {
		this.fdWorktype = fdWorktype;
	}
	/**
	 * get the fdStationname 
	 * @return the fdStationname
	 */
	public String getFdStationname() {
		return this.fdStationname;
	}
	
	/**
	 * set the fdStationname 
	 */
	public void setFdStationname(String fdStationname) {
		this.fdStationname = fdStationname;
	}
	/**
	 * get the fdNowinminetotal 
	 * @return the fdNowinminetotal
	 */
	public Long getFdNowinminetotal() {
		return this.fdNowinminetotal;
	}
	
	/**
	 * set the fdNowinminetotal 
	 */
	public void setFdNowinminetotal(Long fdNowinminetotal) {
		this.fdNowinminetotal = fdNowinminetotal;
	}
	/**
	 * get the fdRegiontotal 
	 * @return the fdRegiontotal
	 */
	public Long getFdRegiontotal() {
		return this.fdRegiontotal;
	}
	
	/**
	 * set the fdRegiontotal 
	 */
	public void setFdRegiontotal(Long fdRegiontotal) {
		this.fdRegiontotal = fdRegiontotal;
	}
	/**
	 * get the fdStationtotal 
	 * @return the fdStationtotal
	 */
	public Long getFdStationtotal() {
		return this.fdStationtotal;
	}
	
	/**
	 * set the fdStationtotal 
	 */
	public void setFdStationtotal(Long fdStationtotal) {
		this.fdStationtotal = fdStationtotal;
	}
	/**
	 * get the fdTracktimemuster 
	 * @return the fdTracktimemuster
	 */
	public String getFdTracktimemuster() {
		return this.fdTracktimemuster;
	}
	
	/**
	 * set the fdTracktimemuster 
	 */
	public void setFdTracktimemuster(String fdTracktimemuster) {
		this.fdTracktimemuster = fdTracktimemuster;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdMiningId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningId")), fdMiningId));
		setFdMiningCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMiningCode")), fdMiningCode));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdPersonName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonName")), fdPersonName));
		setFdPersonNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonNo")), fdPersonNo));
		setFdRegionname(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRegionname")), fdRegionname));
		setFdIntotime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIntotime")), fdIntotime));
		setFdCreatedoctime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreatedoctime")), fdCreatedoctime));
		setFdWorktype(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorktype")), fdWorktype));
		setFdStationname(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStationname")), fdStationname));
		setFdNowinminetotal(NumberUtils.toLong(StringUtils.toString(map.get("fdNowinminetotal")), fdNowinminetotal));
		setFdRegiontotal(NumberUtils.toLong(StringUtils.toString(map.get("fdRegiontotal")), fdRegiontotal));
		setFdStationtotal(NumberUtils.toLong(StringUtils.toString(map.get("fdStationtotal")), fdStationtotal));
		setFdTracktimemuster(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTracktimemuster")), fdTracktimemuster));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdMiningId",StringUtils.toString(fdMiningId, eiMetadata.getMeta("fdMiningId")));	
			map.put("fdMiningCode",StringUtils.toString(fdMiningCode, eiMetadata.getMeta("fdMiningCode")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdPersonName",StringUtils.toString(fdPersonName, eiMetadata.getMeta("fdPersonName")));	
			map.put("fdPersonNo",StringUtils.toString(fdPersonNo, eiMetadata.getMeta("fdPersonNo")));	
			map.put("fdRegionname",StringUtils.toString(fdRegionname, eiMetadata.getMeta("fdRegionname")));	
			map.put("fdIntotime",StringUtils.toString(fdIntotime, eiMetadata.getMeta("fdIntotime")));	
			map.put("fdCreatedoctime",StringUtils.toString(fdCreatedoctime, eiMetadata.getMeta("fdCreatedoctime")));	
			map.put("fdWorktype",StringUtils.toString(fdWorktype, eiMetadata.getMeta("fdWorktype")));	
			map.put("fdStationname",StringUtils.toString(fdStationname, eiMetadata.getMeta("fdStationname")));	
			map.put("fdNowinminetotal",StringUtils.toString(fdNowinminetotal, eiMetadata.getMeta("fdNowinminetotal")));	
			map.put("fdRegiontotal",StringUtils.toString(fdRegiontotal, eiMetadata.getMeta("fdRegiontotal")));	
			map.put("fdStationtotal",StringUtils.toString(fdStationtotal, eiMetadata.getMeta("fdStationtotal")));	
			map.put("fdTracktimemuster",StringUtils.toString(fdTracktimemuster, eiMetadata.getMeta("fdTracktimemuster")));	
			
		return map;
	
	}
}